import request from '@/utils/request'

// 查询商品类别价格策略信息列表
export function listGoodsCategofyStrategy(query) {
  return request({
    url: '/biz/goodsCategofyStrategy/list',
    method: 'get',
    params: query
  })
}

// 查询商品类别价格策略信息详细
export function getGoodsCategofyStrategy(strategyId) {
  return request({
    url: '/biz/goodsCategofyStrategy/' + strategyId,
    method: 'get'
  })
}

// 新增商品类别价格策略信息
export function addGoodsCategofyStrategy(data) {
  return request({
    url: '/biz/goodsCategofyStrategy',
    method: 'post',
    data: data
  })
}

// 修改商品类别价格策略信息
export function updateGoodsCategofyStrategy(data) {
  return request({
    url: '/biz/goodsCategofyStrategy',
    method: 'put',
    data: data
  })
}

// 删除商品类别价格策略信息
export function delGoodsCategofyStrategy(strategyId) {
  return request({
    url: '/biz/goodsCategofyStrategy/' + strategyId,
    method: 'delete'
  })
}
